# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/25 下午3:08
 @Author  : tgy
 
"""


class Person:

    def __init__(self, name):
        self._name = name

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, name):
        self._name = name

    # @classmethod
    def test(self):
        print(self)


class Student(Person):
    ...

    def __init__(self, name):
        super().__init__(name)

    @property
    def name(self):
        return super().name

    @name.setter
    def name(self, name):
        # print(super(Student, Student).name)
        super(Student, Student).name.__set__(self, name)
        super(Student, Student).test('12')


if __name__ == '__main__':
    ...
    student = Student('lisi')
    student.name = 'zhangsan'
    print(student.name)
    print(Person.name)
